<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>分销策略</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="-2020043392">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/manage/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/manage/js/jquery-1.7.1.min.js"></script>

	<script type="text/javascript" src="/manage/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/manage//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/manage/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/manage/css/define.css"/>
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-2020043392";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/manage/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/manage/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("distribconf.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		THIS.setData(protocol.data);
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#distribconfForm").form({
		"":function(){}
		,"distribConf.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"distribConf.identityType":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择身份类型";
			}
		}
		,"distribConf.rechargeFrom":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "充值起输入格式错误";
		}
		,"distribConf.rechargeTo":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "充值至输入格式错误";
		}
		,"distribConf.directRatio":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "直接比例输入格式错误";
		}
		,"distribConf.indirectRatio":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "间接比例输入格式错误";
		}
		,"distribConf.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"distribConf.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"distribConf.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
		,"distribConf.merchant":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>



<form lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'}}" class="form editform edittype_{{edittype}}" ref="DistribConf" id="distribconfForm" name="distribconfForm" target="jsoniframe" action="distribconf.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写分销策略相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
	{{lz.set("id_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{distribConf$id}}">
				{{distribConf$id}}
			</lz:block>
			<lz:block lz:if="{{!distribConf$id}}">
			<input type="hidden" value="{{lz.htm(distribConf.id)}}" name="distribConf.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{distribConf.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(distribConf.id$||distribConf.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("identityType_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"identityType"))))}}
	{{lz.set("identityType_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$identityType}}
	<dl lz:if="{{identityType_editable||identityType_readonly}}" class="identityType  " major  ref="identityType">
		<dt>身份类型:</dt>
		<dd lz:if="{{identityType_editable}}" input="select">
			<lz:block lz:if="{{distribConf$identityType}}">
				{{distribConf$identityType}}
			</lz:block>
			<lz:block lz:if="{{!distribConf$identityType}}">
		 	<select class="narrow" id="identityType" name="distribConf.identityType">
		 		<option value="">请选择</option>
				<option value="0" selected='{{distribConf.identityType=="0"?"selected":""}}'>普通身份</option>
				<option value="1" selected='{{distribConf.identityType=="1"?"selected":""}}'>代理身份</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择分销策略的身份类型</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{identityType_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="identityType">{{distribConf.identityType}}</textarea>
		 		<span>
		 	
			 {{lz.html(distribConf.identityType$||distribConf.identityType)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$identityType}}
	{{lz.set("rechargeFrom_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"rechargeFrom"))))}}
	{{lz.set("rechargeFrom_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$rechargeFrom}}
	<dl lz:if="{{rechargeFrom_editable||rechargeFrom_readonly}}" class="ribs rechargeFrom  " major  ref="rechargeFrom">
		<dt>充 值 起:</dt>
		<dd lz:if="{{rechargeFrom_editable}}" input="menoy">
			<lz:block lz:if="{{distribConf$rechargeFrom}}">
				{{distribConf$rechargeFrom}}
			</lz:block>
			<lz:block lz:if="{{!distribConf$rechargeFrom}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="distribConf.rechargeFrom" id="rechargeFrom"  value="{{lz.htm(distribConf.rechargeFrom)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入分销策略的充值起</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{rechargeFrom_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="rechargeFrom">{{distribConf.rechargeFrom}}</textarea>
		 		<span>
		 	
			 {{lz.html(distribConf.rechargeFrom$||distribConf.rechargeFrom)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$rechargeFrom}}
	{{lz.set("rechargeTo_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"rechargeTo"))))}}
	{{lz.set("rechargeTo_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$rechargeTo}}
	<dl lz:if="{{rechargeTo_editable||rechargeTo_readonly}}" class="ribs rechargeTo  " major  ref="rechargeTo">
		<dt>充 值 至:</dt>
		<dd lz:if="{{rechargeTo_editable}}" input="menoy">
			<lz:block lz:if="{{distribConf$rechargeTo}}">
				{{distribConf$rechargeTo}}
			</lz:block>
			<lz:block lz:if="{{!distribConf$rechargeTo}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="distribConf.rechargeTo" id="rechargeTo"  value="{{lz.htm(distribConf.rechargeTo)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入分销策略的充值至</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{rechargeTo_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="rechargeTo">{{distribConf.rechargeTo}}</textarea>
		 		<span>
		 	
			 {{lz.html(distribConf.rechargeTo$||distribConf.rechargeTo)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$rechargeTo}}
	{{lz.set("directRatio_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"directRatio"))))}}
	{{lz.set("directRatio_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$directRatio}}
	<dl lz:if="{{directRatio_editable||directRatio_readonly}}" class="ribs directRatio  " major  ref="directRatio">
		<dt>直接比例:</dt>
		<dd lz:if="{{directRatio_editable}}" input="menoy">
			<lz:block lz:if="{{distribConf$directRatio}}">
				{{distribConf$directRatio}}
			</lz:block>
			<lz:block lz:if="{{!distribConf$directRatio}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="distribConf.directRatio" id="directRatio"  value="{{lz.htm(distribConf.directRatio)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入分销策略的直接比例</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{directRatio_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="directRatio">{{distribConf.directRatio}}</textarea>
		 		<span>
		 	
			 {{lz.html(distribConf.directRatio$||distribConf.directRatio)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$directRatio}}
	{{lz.set("indirectRatio_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"indirectRatio"))))}}
	{{lz.set("indirectRatio_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$indirectRatio}}
	<dl lz:if="{{indirectRatio_editable||indirectRatio_readonly}}" class="ribs indirectRatio  " major  ref="indirectRatio">
		<dt>间接比例:</dt>
		<dd lz:if="{{indirectRatio_editable}}" input="menoy">
			<lz:block lz:if="{{distribConf$indirectRatio}}">
				{{distribConf$indirectRatio}}
			</lz:block>
			<lz:block lz:if="{{!distribConf$indirectRatio}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="distribConf.indirectRatio" id="indirectRatio"  value="{{lz.htm(distribConf.indirectRatio)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入分销策略的间接比例</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{indirectRatio_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="indirectRatio">{{distribConf.indirectRatio}}</textarea>
		 		<span>
		 	
			 {{lz.html(distribConf.indirectRatio$||distribConf.indirectRatio)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$indirectRatio}}
	{{lz.set("updateTime_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{distribConf$updateTime}}">
				{{distribConf$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!distribConf$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="distribConf.updateTime" id="updateTime"  value="{{distribConf.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择分销策略的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{distribConf.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(distribConf.updateTime$||distribConf.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
	{{lz.set("addTime_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{distribConf$addTime}}">
				{{distribConf$addTime}}
			</lz:block>
			<lz:block lz:if="{{!distribConf$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="distribConf.addTime" id="addTime"  value="{{distribConf.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择分销策略的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{distribConf.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(distribConf.addTime$||distribConf.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
	{{lz.set("status_editable",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{distribConf$status}}">
				{{distribConf$status}}
			</lz:block>
			<lz:block lz:if="{{!distribConf$status}}">
		 	<select class="narrow" id="status" name="distribConf.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{distribConf.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{distribConf.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择分销策略的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{distribConf.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(distribConf.status$||distribConf.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{distribConf.id}}" name="distribConf.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'}}">
				<button class="button" type="submit">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/products/distribconf.edit.html?edittype=update&id={{distribConf.id}}"'>
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					修改&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>


 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>

</script>
</html>